package com.gzhryc.net_marketing.api.protocol.config;

import com.gzhryc.common.api.SecurityResponse;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class MarketSupplierConfigResponse extends SecurityResponse<MarketSupplierConfigResponse.Body> {

    private static final long serialVersionUID = 1L;

    public MarketSupplierConfigResponse() {
        this.body = new Body();
    }

    public MarketSupplierConfigResponse(Integer code, String msg) {
        super(code,msg);
        this.body = new Body();
    }

    public static class Body implements Serializable {

        private static final long serialVersionUID = 1L;

        private List<SupplierItem> items;             //部署的应用

        public List<SupplierItem> getItems() {
            return items;
        }

        public void setItems(List<SupplierItem> items) {
            this.items = items;
        }
    }

    public static class SupplierItem {

    	private Long id;
        private String name;
        private String dbConfig; 			// 数据库配置信息
        private Date createDate;
        
        private Long userId;

        private Long accountId;
        private String visitToken;
        private String payToken;
        
        public Long getId() {
			return id;
		}

		public void setId(Long id) {
			this.id = id;
		}

		public Long getUserId() {
			return userId;
		}

		public void setUserId(Long userId) {
			this.userId = userId;
		}

		public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getDbConfig() {
            return dbConfig;
        }

        public void setDbConfig(String dbConfig) {
            this.dbConfig = dbConfig;
        }

        public Long getAccountId() {
			return accountId;
		}

		public void setAccountId(Long accountId) {
			this.accountId = accountId;
		}

		public String getVisitToken() {
            return visitToken;
        }

        public void setVisitToken(String visitToken) {
            this.visitToken = visitToken;
        }

        public String getPayToken() {
            return payToken;
        }

        public void setPayToken(String payToken) {
            this.payToken = payToken;
        }

        public Date getCreateDate() {
            return createDate;
        }

        public void setCreateDate(Date createDate) {
            this.createDate = createDate;
        }
    }
}
